import VueI18n from 'vue-i18n'
import Vue from 'vue'
import { getLocalStorage } from '../utils/storage'
Vue.use(VueI18n)

const i18n = new VueI18n({
    locale: getLocalStorage('lang') == '1' ? 'zh' : getLocalStorage('lang') == '0' ? 'jp' : 'en',
    messages: {
        'jp': require('./lang/jp'),
        'zh': require('./lang/zh'),
        'en': require('./lang/en'),
    },
    silentTranslationWarn: true,
})
export default i18n